package org.yogurtcat.server.modules.system.menu.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.Repository;
import org.yogurtcat.server.modules.system.menu.domain.Menu;

public interface MenuRepository extends Repository<Menu, Long>, JpaSpecificationExecutor<Menu> {

	void save(Menu value);

	List<Menu> findAllByPid(long pid);

	Menu findByPid(long l);

	void deleteById(Long id);
}
